package com.mt.roll.wms.params;

import com.mt.roll.core.base.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2021/1/11 14:58
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Builder
@ApiModel(value = "设备bom详情 参数对象", description = "设备bom详情 参数对象")
public class EquipmentBomDetailParam  extends BaseParam {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(value = "id，只在update的时候传，add不用传", example = "1")
    private Long id;

    /**
     * 设备BOMID
     */
    @ApiModelProperty(value = "设备BOMID",required = true, example = "1348523212168134658")
    @NotNull(message = "设备BOMID 不能为空")
    private Long equipmentBomId;

    /**
     * 物料ID
     */
    @ApiModelProperty(value = "物料ID",required = true, example = "1111")
    @NotNull(message = "物料ID 不能为空")
    private Long materialId;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量", example = "11")
    private Integer quantity;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位", example = "g")
    private String unit;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", example = "备注1")
    private String remark;

}
